﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsFormsApplication1
{
    class column:System.Windows.Forms.PictureBox
    {
        public int columnWidth, columnHeigh, locationX, locationY, locationY_end;
        public string name;
        public column()
        {
            columnWidth = columnHeigh = 0;
            locationX = locationY = locationY_end = 0;
        }
        public column(int width, int height,int locX, int locY, string na)
        {
            columnWidth = width;
            columnHeigh = height;
            locationX = locX;
            locationY = locY;
            name = na;
            locationY_end = height - 5 - height / 10;
            this.Size = new System.Drawing.Size(columnWidth, columnHeigh);
            this.Location = new System.Drawing.Point(locationX, locationY);
            this.BackgroundImage = global::WindowsFormsApplication1.Properties.Resources.Untitled;
            this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
        }
        public void adddisk(disk d)
        {
            d.Location = new System.Drawing.Point(d.locationX, locationY_end);
            this.Controls.Add(d);
            locationY_end -= columnHeigh / 18;
        }
        public void removedisk(disk d)
        {
            this.Controls.Remove(d);
            locationY_end += columnHeigh / 18;
        }
    }
}
